<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轻量级国密后端服务框架Go语言实现指南</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">   
    <style>
        body {
            font-family: 'Noto Sans SC', 'Roboto', sans-serif;
            background-color: #FFFFFF;
        }
        .card {
            background-color: white;
            border: 1px solid #E5E7EB;
            border-radius: 1.25rem; /* 20px */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            overflow: hidden;
            position: relative;
        }
        .card:hover {
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }
        .highlight-gradient-blue {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.05));
        }
        .highlight-gradient-green {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0), rgba(34, 197, 94, 0.05));
        }
        .highlight-gradient-purple {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0), rgba(139, 92, 246, 0.05));
        }
        .highlight-gradient-orange {
            background: linear-gradient(135deg, rgba(249, 115, 22, 0), rgba(249, 115, 22, 0.05));
        }
        .highlight-gradient-red {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0), rgba(239, 68, 68, 0.05));
        }
        .text-gradient-blue {
            background: linear-gradient(135deg, #3B82F6, #1D4ED8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .text-gradient-green {
            background: linear-gradient(135deg, #22C55E, #16A34A);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .text-gradient-purple {
            background: linear-gradient(135deg, #8B5CF6, #7C3AED);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .text-gradient-orange {
            background: linear-gradient(135deg, #F97316, #EA580C);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .text-gradient-red {
            background: linear-gradient(135deg, #EF4444, #DC2626);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .progress-bar {
            height: 6px;
            border-radius: 3px;
            background-color: #E5E7EB;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            transition: width 1s ease-in-out;
        }
        .feature-tag {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
    </style>
</head>
<body class="bg-white">
    <div class="max-w-7xl mx-auto p-4 md:p-8">
        <div class="grid grid-cols-1 md:grid-cols-4 gap-4 md:gap-6">
            <!-- 标题卡片 -->
            <div class="card md:col-span-4 p-8 flex flex-col justify-center">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-blue"></div>
                <div class="relative">
                    <div class="text-4xl md:text-5xl font-black text-gray-800 mb-4">轻量级国密后端服务框架</div>
                    <div class="text-2xl md:text-3xl font-bold text-gradient-blue">Go语言实现指南</div>
                    <div class="mt-6 text-gray-500 text-lg">构建高性能、低资源占用的国密算法后端服务</div>
                </div>
            </div>

            <!-- 项目概述 -->
            <div class="card md:col-span-2 p-6 flex flex-col">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-green"></div>
                <div class="relative flex-grow">
                    <div class="flex items-center mb-4">
                        <i class="fa-solid fa-rocket text-2xl text-green-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">项目概述</div>
                    </div>
                    <div class="text-gray-600 space-y-3">
                        <p>开发一个轻量级、高性能、满足国密算法标准的后端服务框架，采用Go语言实现，重点解决在单核1GB内存环境下的高效运行问题。</p>
                        <p>核心设计目标：极致轻量、卓越性能、完整国密支持、极简依赖。</p>
                    </div>
                </div>
            </div>

            <!-- 性能指标 -->
            <div class="card md:col-span-2 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-blue"></div>
                <div class="relative">
                    <div class="flex items-center mb-4">
                        <i class="fa-solid fa-gauge-high text-2xl text-blue-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">性能目标</div>
                    </div>
                    <div class="grid grid-cols-2 gap-4">
                        <div class="text-center">
                            <div class="text-3xl font-black text-gradient-blue">10万+</div>
                            <div class="text-sm text-gray-500">QPS</div>
                        </div>
                        <div class="text-center">
                            <div class="text-3xl font-black text-gradient-blue">< 10ms</div>
                            <div class="text-sm text-gray-500">99%延迟</div>
                        </div>
                        <div class="text-center">
                            <div class="text-3xl font-black text-gradient-blue">< 200MB</div>
                            <div class="text-sm text-gray-500">内存峰值</div>
                        </div>
                        <div class="text-center">
                            <div class="text-3xl font-black text-gradient-blue">< 100ms</div>
                            <div class="text-sm text-gray-500">启动时间</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Go语言优势 -->
            <div class="card md:col-span-2 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-purple"></div>
                <div class="relative">
                    <div class="flex items-center mb-4">
                        <i class="fa-brands fa-go text-2xl text-purple-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">Go语言优势</div>
                    </div>
                    <div class="space-y-3">
                        <div class="flex items-start">
                            <i class="fa-solid fa-circle-check text-purple-500 mt-1 mr-2"></i>
                            <div>
                                <div class="font-semibold text-gray-700">轻量级并发模型</div>
                                <div class="text-sm text-gray-500">Goroutine初始栈仅2KB，支持数万并发</div>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <i class="fa-solid fa-circle-check text-purple-500 mt-1 mr-2"></i>
                            <div>
                                <div class="font-semibold text-gray-700">高效内存管理</div>
                                <div class="text-sm text-gray-500">GC暂停时间1-2ms，分级内存分配器</div>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <i class="fa-solid fa-circle-check text-purple-500 mt-1 mr-2"></i>
                            <div>
                                <div class="font-semibold text-gray-700">标准库强大</div>
                                <div class="text-sm text-gray-500">net/http性能优异，经过大规模验证</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 国密算法支持 -->
            <div class="card md:col-span-2 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-orange"></div>
                <div class="relative">
                    <div class="flex items-center mb-4">
                        <i class="fa-solid fa-shield-halved text-2xl text-orange-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">国密算法支持</div>
                    </div>
                    <div class="space-y-3">
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <i class="fa-solid fa-key text-orange-500 mr-2"></i>
                                <span class="font-medium">SM2椭圆曲线算法</span>
                            </div>
                            <div class="text-sm text-gray-500">签名/加密/密钥交换</div>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <i class="fa-solid fa-fingerprint text-orange-500 mr-2"></i>
                                <span class="font-medium">SM3密码杂凑算法</span>
                            </div>
                            <div class="text-sm text-gray-500">哈希计算/消息认证</div>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <i class="fa-solid fa-lock text-orange-500 mr-2"></i>
                                <span class="font-medium">SM4分组密码算法</span>
                            </div>
                            <div class="text-sm text-gray-500">数据加密/解密</div>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <i class="fa-solid fa-globe text-orange-500 mr-2"></i>
                                <span class="font-medium">国密TLS协议</span>
                            </div>
                            <div class="text-sm text-gray-500">安全传输层</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 架构设计 -->
            <div class="card md:col-span-4 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-blue"></div>
                <div class="relative">
                    <div class="flex items-center mb-6">
                        <i class="fa-solid fa-sitemap text-2xl text-blue-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">轻量级架构设计</div>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <div class="bg-white rounded-lg p-4 border border-gray-100 shadow-sm">
                            <div class="flex items-center mb-3">
                                <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
                                    <i class="fa-solid fa-users text-blue-500"></i>
                                </div>
                                <h3 class="font-bold text-gray-800">单进程多goroutine</h3>
                            </div>
                            <p class="text-sm text-gray-600">每个HTTP请求由独立goroutine处理，通过通道通信同步，实现高效并发处理。</p>
                        </div>
                        <div class="bg-white rounded-lg p-4 border border-gray-100 shadow-sm">
                            <div class="flex items-center mb-3">
                                <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3">
                                    <i class="fa-solid fa-memory text-green-500"></i>
                                </div>
                                <h3 class="font-bold text-gray-800">内存优化策略</h3>
                            </div>
                            <p class="text-sm text-gray-600">对象池技术、零拷贝机制和智能内存管理，减少GC压力，提高内存利用率。</p>
                        </div>
                        <div class="bg-white rounded-lg p-4 border border-gray-100 shadow-sm">
                            <div class="flex items-center mb-3">
                                <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
                                    <i class="fa-solid fa-puzzle-piece text-purple-500"></i>
                                </div>
                                <h3 class="font-bold text-gray-800">可插拔中间件</h3>
                            </div>
                            <p class="text-sm text-gray-600">基于责任链模式的中间件架构，支持灵活的功能组合和高性能请求处理。</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 性能对比图表 -->
            <div class="card md:col-span-4 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-green"></div>
                <div class="relative">
                    <div class="flex items-center mb-4">
                        <i class="fa-solid fa-chart-line text-2xl text-green-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">性能对比分析</div>
                    </div>
                    <div class="h-64">
                        <canvas id="performanceChart"></canvas>
                    </div>
                </div>
            </div>

            <!-- 技术选型 -->
            <div class="card md:col-span-2 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-purple"></div>
                <div class="relative">
                    <div class="flex items-center mb-4">
                        <i class="fa-solid fa-cogs text-2xl text-purple-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">核心组件技术选型</div>
                    </div>
                    <div class="space-y-4">
                        <div>
                            <div class="flex justify-between items-center mb-1">
                                <span class="font-medium text-gray-700">HTTP服务器</span>
                                <span class="text-sm text-gray-500">net/http</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill bg-purple-500" style="width: 95%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between items-center mb-1">
                                <span class="font-medium text-gray-700">WebSocket</span>
                                <span class="text-sm text-gray-500">gorilla/websocket</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill bg-purple-500" style="width: 85%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between items-center mb-1">
                                <span class="font-medium text-gray-700">国密算法</span>
                                <span class="text-sm text-gray-500">tjfoc/gmsm</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill bg-purple-500" style="width: 90%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between items-center mb-1">
                                <span class="font-medium text-gray-700">JSON处理</span>
                                <span class="text-sm text-gray-500">jsoniter</span>
                            </div>
                            <div class="progress-bar">
                                <div class="progress-fill bg-purple-500" style="width: 88%"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 内存优化技术 -->
            <div class="card md:col-span-2 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-orange"></div>
                <div class="relative">
                    <div class="flex items-center mb-4">
                        <i class="fa-solid fa-leaf text-2xl text-orange-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">内存优化技术</div>
                    </div>
                    <div class="space-y-3">
                        <div class="feature-tag bg-orange-100 text-orange-700">对象池技术</div>
                        <div class="feature-tag bg-orange-100 text-orange-700">零拷贝机制</div>
                        <div class="feature-tag bg-orange-100 text-orange-700">内存对齐</div>
                        <div class="feature-tag bg-orange-100 text-orange-700">智能缓冲</div>
                        <div class="feature-tag bg-orange-100 text-orange-700">预分配</div>
                        <div class="feature-tag bg-orange-100 text-orange-700">内存复用</div>
                    </div>
                    <div class="mt-4 p-3 bg-orange-50 rounded-lg">
                        <div class="text-sm text-gray-600">
                            <i class="fa-solid fa-lightbulb text-orange-500 mr-1"></i>
                            <span class="font-medium">优化效果：</span>
                            <span>使用对象池可将GC开销降低约40%，零拷贝技术可减少CPU开销和内存使用。</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 国密算法性能 -->
            <div class="card md:col-span-4 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-red"></div>
                <div class="relative">
                    <div class="flex items-center mb-6">
                        <i class="fa-solid fa-chart-bar text-2xl text-red-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">国密算法性能表现</div>
                    </div>
                    <div class="h-64">
                        <canvas id="cryptoChart"></canvas>
                    </div>
                </div>
            </div>

            <!-- 开发实践 -->
            <div class="card md:col-span-2 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-blue"></div>
                <div class="relative">
                    <div class="flex items-center mb-4">
                        <i class="fa-solid fa-code text-2xl text-blue-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">开发实践与性能验证</div>
                    </div>
                    <div class="space-y-3">
                        <div class="flex items-start">
                            <div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center mr-3 mt-0.5">
                                <span class="text-blue-500 text-xs font-bold">1</span>
                            </div>
                            <div>
                                <div class="font-semibold text-gray-700">性能基准测试体系</div>
                                <div class="text-sm text-gray-500">建立多层次、多维度的测试方法，确保性能指标的准确性和可重复性。</div>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center mr-3 mt-0.5">
                                <span class="text-blue-500 text-xs font-bold">2</span>
                            </div>
                            <div>
                                <div class="font-semibold text-gray-700">压力测试场景设计</div>
                                <div class="text-sm text-gray-500">极限并发、负载饱和、稳定性和边界条件测试，验证系统极限性能。</div>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center mr-3 mt-0.5">
                                <span class="text-blue-500 text-xs font-bold">3</span>
                            </div>
                            <div>
                                <div class="font-semibold text-gray-700">内存监控与性能分析</div>
                                <div class="text-sm text-gray-500">使用Go内置pprof工具，建立完善的内存监控和性能分析体系。</div>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center mr-3 mt-0.5">
                                <span class="text-blue-500 text-xs font-bold">4</span>
                            </div>
                            <div>
                                <div class="font-semibold text-gray-700">代码质量保障措施</div>
                                <div class="text-sm text-gray-500">静态检查、测试验证和代码审查，确保代码质量和可靠性。</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 依赖管理 -->
            <div class="card md:col-span-2 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-green"></div>
                <div class="relative">
                    <div class="flex items-center mb-4">
                        <i class="fa-solid fa-puzzle-piece text-2xl text-green-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">依赖管理与可维护性</div>
                    </div>
                    <div class="space-y-4">
                        <div class="bg-white rounded-lg p-4 border border-gray-100 shadow-sm">
                            <div class="font-bold text-gray-800 mb-2">最小化外部依赖</div>
                            <div class="text-sm text-gray-600">标准库优先，第三方依赖不超过5个，严格版本控制和安全审计。</div>
                        </div>
                        <div class="bg-white rounded-lg p-4 border border-gray-100 shadow-sm">
                            <div class="font-bold text-gray-800 mb-2">可维护性架构</div>
                            <div class="text-sm text-gray-600">模块化设计、接口抽象、文档规范、测试覆盖率80%以上。</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 未来展望 -->
            <div class="card md:col-span-4 p-6">
                <div class="absolute top-0 left-0 w-full h-full highlight-gradient-purple"></div>
                <div class="relative">
                    <div class="flex items-center mb-6">
                        <i class="fa-solid fa-telescope text-2xl text-purple-500 mr-3"></i>
                        <div class="text-xl font-bold text-gray-800">总结与未来展望</div>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <div class="bg-white rounded-lg p-4 border border-gray-100 shadow-sm">
                            <div class="flex items-center mb-3">
                                <i class="fa-solid fa-check-circle text-green-500 mr-2"></i>
                                <h3 class="font-bold text-gray-800">技术突破</h3>
                            </div>
                            <ul class="text-sm text-gray-600 space-y-1">
                                <li>• Goroutine轻量级并发模型</li>
                                <li>• 内存优化策略</li>
                                <li>• 国密算法高效集成</li>
                                <li>• 可插拔中间件架构</li>
                            </ul>
                        </div>
                        <div class="bg-white rounded-lg p-4 border border-gray-100 shadow-sm">
                            <div class="flex items-center mb-3">
                                <i class="fa-solid fa-rocket text-blue-500 mr-2"></i>
                                <h3 class="font-bold text-gray-800">未来发展</h3>
                            </div>
                            <ul class="text-sm text-gray-600 space-y-1">
                                <li>• HTTP/3与QUIC协议支持</li>
                                <li>• WebAssembly集成</li>
                                <li>• 更多国密算法支持</li>
                                <li>• 无锁数据结构应用</li>
                            </ul>
                        </div>
                        <div class="bg-white rounded-lg p-4 border border-gray-100 shadow-sm">
                            <div class="flex items-center mb-3">
                                <i class="fa-solid fa-seedling text-purple-500 mr-2"></i>
                                <h3 class="font-bold text-gray-800">生态建设</h3>
                            </div>
                            <ul class="text-sm text-gray-600 space-y-1">
                                <li>• 完善文档体系</li>
                                <li>• 示例应用开发</li>
                                <li>• 开源社区参与</li>
                                <li>• 技术分享推广</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script>
    // 性能对比图表
    const performanceCtx = document.getElementById('performanceChart').getContext('2d');
    new Chart(performanceCtx, {
        type: 'bar',
        data: {
            labels: ['QPS (万)', '平均延迟 (ms)', '99%延迟 (ms)', '内存占用 (MB)'],
            datasets: [{
                label: 'Go标准库HTTP',
                data: [2.5, 8, 15, 150],
                backgroundColor: 'rgba(59, 130, 246, 0.7)',
                borderColor: 'rgba(59, 130, 246, 1)',
                borderWidth: 1
            }, {
                label: '优化后HTTP',
                data: [3.7, 5, 10, 120],
                backgroundColor: 'rgba(34, 197, 94, 0.7)',
                borderColor: 'rgba(34, 197, 94, 1)',
                borderWidth: 1
            }, {
                label: '目标性能',
                data: [10, 2, 10, 200],
                backgroundColor: 'rgba(139, 92, 246, 0.7)',
                borderColor: 'rgba(139, 92, 246, 1)',
                borderWidth: 1
            }]
        },
        options: {
            responsive: true,
            maintainAspectRatio: false,
            plugins: {
                legend: {
                    position: 'top',
                },
                title: {
                    display: true,
                    text: 'HTTP服务器性能对比'
                }
            },
            scales: {
                y: {
                    beginAtZero: true
                }
            }
        }
    });

    // 国密算法性能图表
    const cryptoCtx = document.getElementById('cryptoChart').getContext('2d');
    new Chart(cryptoCtx, {
        type: 'radar',
        data: {
            labels: ['签名速度', '验证速度', '加密速度', '解密速度', '内存占用', '安全性'],
            datasets: [{
                label: 'SM2',
                data: [90, 85, 80, 75, 90, 95],
                fill: true,
                backgroundColor: 'rgba(239, 68, 68, 0.2)',
                borderColor: 'rgb(239, 68, 68)',
                pointBackgroundColor: 'rgb(239, 68, 68)',
                pointBorderColor: '#fff',
                pointHoverBackgroundColor: '#fff',
                pointHoverBorderColor: 'rgb(239, 68, 68)'
            }, {
                label: 'SM4',
                data: [95, 95, 90, 90, 85, 90],
                fill: true,
                backgroundColor: 'rgba(249, 115, 22, 0.2)',
                borderColor: 'rgb(249, 115, 22)',
                pointBackgroundColor: 'rgb(249, 115, 22)',
                pointBorderColor: '#fff',
                pointHoverBackgroundColor: '#fff',
                pointHoverBorderColor: 'rgb(249, 115, 22)'
            }, {
                label: 'RSA/AES',
                data: [60, 80, 85, 85, 70, 85],
                fill: true,
                backgroundColor: 'rgba(59, 130, 246, 0.2)',
                borderColor: 'rgb(59, 130, 246)',
                pointBackgroundColor: 'rgb(59, 130, 246)',
                pointBorderColor: '#fff',
                pointHoverBackgroundColor: '#fff',
                pointHoverBorderColor: 'rgb(59, 130, 246)'
            }]
        },
        options: {
            responsive: true,
            maintainAspectRatio: false,
            plugins: {
                legend: {
                    position: 'top',
                },
                title: {
                    display: true,
                    text: '国密算法与国际算法性能对比 (相对评分)'
                }
            },
            scales: {
                r: {
                    angleLines: {
                        display: true
                    },
                    suggestedMin: 50,
                    suggestedMax: 100
                }
            }
        }
    });

    // 动画效果
    document.addEventListener('DOMContentLoaded', function() {
        // 延迟显示进度条动画
        setTimeout(() => {
            const progressBars = document.querySelectorAll('.progress-fill');
            progressBars.forEach(bar => {
                bar.style.width = bar.style.width;
            });
        }, 500);
    });
</script>
</html>
